package com.lu.widgets.component.tab;

import com.lu.widgets.R;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.widget.TabHost;
import android.widget.TextView;

public class ToolKitTabHost extends TabHost {

	public ToolKitTabHost(Context context) {
		super(context);
	}

	public ToolKitTabHost(Context context, AttributeSet attrs) {
		super(context, attrs);
	}

	@Override
	public TabSpec newTabSpec(String tag) {
		TextView tv = (TextView) LayoutInflater.from(getContext()).inflate(
				R.layout.toolkit_tab, null, false);
		tv.setText(tag);
		return super.newTabSpec(tag).setIndicator(tv);
	}
}
